package com.ry.novel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ry.novel.model.dto.CategoryInfo;
import com.ry.novel.model.dto.condition.CategoryQuery;

import java.util.List;

/**
 * @author ry
 * @since 2022-04-09 16:52
 **/
public interface CategoryService {
    Page<CategoryInfo> queryCategory(CategoryQuery categoryQuery);
    void addCategory(CategoryInfo categoryInfo);
    void updateCategory(CategoryInfo categoryInfo);
    void deleteCategory(Long id);

    List<CategoryInfo> queryAllCategory();
}
